// 登录页面使用的接口
import {apiRequestList} from "@/common/axios";
import configs from "@/common/config"
const login = "/dt-user/bg/login",//登录接口
roleList = '/dt-business/user/rolesByPhone',//角色列表
messageCode = '/dt-user/bg/sendMessage';//短信验证码


export const goLogin = (params)=>{
    return apiRequestList.$post(login,params)
};
export const getRoleList= (params)=>{
    return apiRequestList.$post(roleList,params)
};
export const getMessageCode = (params)=>{
    return apiRequestList.$post(messageCode,params)
};
//退出
export const getLoginOut = (params) => apiRequestList.$post('/dt-user/bapp/user/logout',params)
//修改用户消息
export const getPersonMessUpdate = (params={}) => apiRequestList.$post('/dt-business/user/update',params)
//获取路由权限
export const getRouterAuthor = (params={}) => apiRequestList.$post('/dt-business/role/permission/getTree',params)
//上传图片地址
//export const unloadImage = '/tool/api/v1/vod/uploadImage'
export const unloadImage = process.env.VUE_APP_API_URL?process.env.VUE_APP_API_URL+'/dt-tool/api/v1/vod/uploadImage':configs.baseURL.target + '/dt-tool/api/v1/vod/uploadImage'

